"""
7-1 统计各类字符个数
"""


def resolution1():
    x = y = z = m = 0
    line = input()
    for char in line:
        if char.islower():
            x += 1
        elif char.isupper():
            y += 1
        elif char.isdigit():
            z += 1
        elif char.isspace():
            m += 1
    print(f"小写字母={x}")
    print(f"大写字母={y}")
    print(f"数字={z}")
    print(f"空格={m}")
    pass


if __name__ == '__main__':
    resolution1()